package entity

import "time"

type SkuStockEntity struct {
	StockId     int64     `gorm:"stock_id;primary_key"` // 库存id
	CreateTime  time.Time `gorm:"create_time"`          // 创建时间
	UpdateTime  time.Time `gorm:"update_time"`          // 更新时间
	SkuId       int64     `gorm:"sku_id"`               // SKU ID
	ActualStock int64     `gorm:"actual_stock"`         // 实际库存
	LockStock   int64     `gorm:"lock_stock"`           // 锁定库存
	Stock       int64     `gorm:"stock"`                // 可售卖库存
}

func (*SkuStockEntity) TableName() string {
	return "sku_stock"
}
